package org.jeecg.modules.erp.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.erp.apithird.entity.SysDepart;
import org.jeecg.modules.erp.base.entity.ErpGoodsFormula;
import org.jeecg.modules.erp.base.vo.ErpGoodsFormulaPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.erp.apithird.entity.SysDepart;
import org.jeecg.modules.erp.base.entity.ErpGoodsFormula;
import org.jeecg.modules.erp.base.vo.ErpGoodsFormulaPage;

/**
 * @Description: 物料配方
 * @Author: jeecg-boot
 * @Date: 2024-05-22
 * @Version: V1.0
 */
public interface ErpGoodsFormulaMapper extends BaseMapper<ErpGoodsFormula> {

    IPage<ErpGoodsFormulaPage> goodsFormulaPage(Page<ErpGoodsFormula> page, @Param("model") ErpGoodsFormula model);

    @Select("SELECT * FROM sys_depart WHERE org_code = #{depCode}")
    SysDepart getUserDepart(String depCode);
}
